/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI.Admin;

import dao.PhimDAO;
import java.util.List;
import java.util.Vector;
import javax.swing.table.DefaultTableModel;
import pojo.Phim;

/**
 *
 * @author Dang Nhung
 */
public class Admin_FilmManage extends javax.swing.JPanel {

    private DefaultTableModel model = null;
    List<Phim> Phims = null; //You must declare at here to use global
    
    /**
     * Creates new form Admin_FilmManage
     */
    public Admin_FilmManage() {
        initComponents();
        //So binding data to jtable
        LoadDBJTable();
    }

    final public void LoadDBJTable() {
        model = (DefaultTableModel) jtblistofmovie.getModel();
        model.getDataVector().clear(); //Empty data into JTable
        try {
            Phims = PhimDAO.getPhims();
            int nums = 0;
            for (Phim phim : Phims) {
                Vector v = new Vector();
                v.addElement(++nums);
                v.addElement(phim.getCodePhim());
                v.addElement(phim.getTenPhim());
                v.addElement(phim.getHangPhim());                
                v.addElement(phim.getLoaiphim().getTenLoaiPhim());
                v.addElement(phim.getGiaCoBan());
                model.addRow(v);
                v = null;
            }
            jtblistofmovie.setModel(model);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
//        }finally{
//            try {
//                PhimDAO.closeCurrentSession(); // Must close at here, throw LazyExceptions 
//            } catch (Exception ex) {
//                ex.printStackTrace();
//            }
//        }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jlbsearchmovie = new javax.swing.JLabel();
        jchbsearchbyname = new javax.swing.JCheckBox();
        jchbsearchbycodeid = new javax.swing.JCheckBox();
        jbtnsearch = new javax.swing.JButton();
        jbtnshowall = new javax.swing.JButton();
        jtxtsearchnameorcodeid = new javax.swing.JTextField();
        jPanel2 = new javax.swing.JPanel();
        jlblistofmovies = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jtblistofmovie = new javax.swing.JTable();
        jpnroomanage = new javax.swing.JPanel();
        jlbcodeid = new javax.swing.JLabel();
        jlbfilmname = new javax.swing.JLabel();
        jlbactorandactress = new javax.swing.JLabel();
        jtxtfilmstudio = new javax.swing.JLabel();
        jlbroomstate = new javax.swing.JLabel();
        jtxtcodeid = new javax.swing.JTextField();
        jtxtfilmname = new javax.swing.JTextField();
        jtxtactorsandactresses = new javax.swing.JTextField();
        jtxtfilstudio = new javax.swing.JTextField();
        jbtnaddfilm = new javax.swing.JButton();
        jbtnreset = new javax.swing.JButton();
        jbtncancel = new javax.swing.JButton();
        jbtnupdatefilm = new javax.swing.JButton();
        jbtndeletefilm = new javax.swing.JButton();
        jlbnationalproduction = new javax.swing.JLabel();
        jtxtnationalproduction = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        jtxtdetaileddescription = new javax.swing.JTextArea();
        jlbversioninformation = new javax.swing.JLabel();
        jtxtversioninformation = new javax.swing.JTextField();
        jlbtypeoffilm = new javax.swing.JLabel();
        jcbtypeoffilm = new javax.swing.JComboBox();
        jlbduration = new javax.swing.JLabel();
        jtxtduration = new javax.swing.JTextField();
        jlbbasicprice = new javax.swing.JLabel();
        jtxtbasicprice = new javax.swing.JTextField();
        jlbstartingdate = new javax.swing.JLabel();
        jlbstateoffilm = new javax.swing.JLabel();
        jcbstateoffilm = new javax.swing.JComboBox();
        jdcstartingdate = new com.toedter.calendar.JDateChooser();
        jlbmovieid = new javax.swing.JLabel();
        jtxtmovieid = new javax.swing.JTextField();

        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel1.setFont(new java.awt.Font("Tahoma", 1, 11));

        jlbsearchmovie.setFont(new java.awt.Font("Tahoma", 3, 12));
        jlbsearchmovie.setText("Search Movie");

        jchbsearchbyname.setText("By Name");

        jchbsearchbycodeid.setText("By Code ID");

        jbtnsearch.setFont(new java.awt.Font("Tahoma", 1, 11));
        jbtnsearch.setText("Search");

        jbtnshowall.setFont(new java.awt.Font("Tahoma", 1, 11));
        jbtnshowall.setText("Show All");

        jtxtsearchnameorcodeid.setFont(new java.awt.Font("Tahoma", 2, 11));
        jtxtsearchnameorcodeid.setText("Type the name or code id ...");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(46, 46, 46)
                .addComponent(jlbsearchmovie, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jchbsearchbycodeid)
                    .addComponent(jchbsearchbyname))
                .addGap(18, 18, 18)
                .addComponent(jtxtsearchnameorcodeid, javax.swing.GroupLayout.DEFAULT_SIZE, 373, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(jbtnsearch)
                .addGap(18, 18, 18)
                .addComponent(jbtnshowall)
                .addGap(51, 51, 51))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jtxtsearchnameorcodeid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jbtnsearch)
                            .addComponent(jbtnshowall)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jchbsearchbyname)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jchbsearchbycodeid))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(24, 24, 24)
                        .addComponent(jlbsearchmovie)))
                .addContainerGap(14, Short.MAX_VALUE))
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jlblistofmovies.setFont(new java.awt.Font("Tahoma", 1, 18));
        jlblistofmovies.setText("List Of Movies");

        jtblistofmovie.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "STT", "Code ID", "Film's Name", "Film Studio", "Type of Film", "Price"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Double.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane1.setViewportView(jtblistofmovie);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 840, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jlblistofmovies, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 20, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jlblistofmovies, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(275, 275, 275))
        );

        jpnroomanage.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jlbcodeid.setFont(new java.awt.Font("Tahoma", 1, 11));
        jlbcodeid.setText("Code ID");

        jlbfilmname.setFont(new java.awt.Font("Tahoma", 1, 11));
        jlbfilmname.setText("Film's Name");

        jlbactorandactress.setFont(new java.awt.Font("Tahoma", 1, 11));
        jlbactorandactress.setText("Actors / Actresses");

        jtxtfilmstudio.setFont(new java.awt.Font("Tahoma", 1, 11));
        jtxtfilmstudio.setText("Film Studio");

        jlbroomstate.setFont(new java.awt.Font("Tahoma", 1, 11));
        jlbroomstate.setText("Detailed Description");

        jbtnaddfilm.setFont(new java.awt.Font("Tahoma", 1, 11));
        jbtnaddfilm.setText("Add Film");

        jbtnreset.setFont(new java.awt.Font("Tahoma", 1, 11));
        jbtnreset.setText("Reset");

        jbtncancel.setFont(new java.awt.Font("Tahoma", 1, 11));
        jbtncancel.setText("Cancel");

        jbtnupdatefilm.setFont(new java.awt.Font("Tahoma", 1, 11));
        jbtnupdatefilm.setText("Update Film");

        jbtndeletefilm.setFont(new java.awt.Font("Tahoma", 1, 11));
        jbtndeletefilm.setText("Delete Film");

        jlbnationalproduction.setFont(new java.awt.Font("Tahoma", 1, 11));
        jlbnationalproduction.setText("National Production");

        jtxtdetaileddescription.setColumns(20);
        jtxtdetaileddescription.setRows(5);
        jScrollPane2.setViewportView(jtxtdetaileddescription);

        jlbversioninformation.setFont(new java.awt.Font("Tahoma", 1, 11));
        jlbversioninformation.setText("Version Information");

        jlbtypeoffilm.setFont(new java.awt.Font("Tahoma", 1, 11));
        jlbtypeoffilm.setText("Type of Film");

        jcbtypeoffilm.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jlbduration.setFont(new java.awt.Font("Tahoma", 1, 11));
        jlbduration.setText("Duration");

        jlbbasicprice.setFont(new java.awt.Font("Tahoma", 1, 11));
        jlbbasicprice.setText("Basic Price");

        jlbstartingdate.setFont(new java.awt.Font("Tahoma", 1, 11));
        jlbstartingdate.setText("Starting Date");

        jlbstateoffilm.setFont(new java.awt.Font("Tahoma", 1, 11));
        jlbstateoffilm.setText("State of Film");

        jcbstateoffilm.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jlbmovieid.setFont(new java.awt.Font("Tahoma", 1, 11));
        jlbmovieid.setText("Movie ID");

        javax.swing.GroupLayout jpnroomanageLayout = new javax.swing.GroupLayout(jpnroomanage);
        jpnroomanage.setLayout(jpnroomanageLayout);
        jpnroomanageLayout.setHorizontalGroup(
            jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnroomanageLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jpnroomanageLayout.createSequentialGroup()
                        .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jlbnationalproduction, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jlbversioninformation, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jpnroomanageLayout.createSequentialGroup()
                                .addGap(38, 38, 38)
                                .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jlbfilmname)
                                    .addComponent(jlbcodeid)
                                    .addComponent(jtxtfilmstudio)
                                    .addComponent(jlbmovieid)))
                            .addComponent(jlbactorandactress))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(jtxtversioninformation, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jtxtnationalproduction, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jtxtfilstudio, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jtxtactorsandactresses, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jtxtfilmname, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jtxtcodeid, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jtxtmovieid, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)
                        .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jpnroomanageLayout.createSequentialGroup()
                                .addGap(51, 51, 51)
                                .addComponent(jlbstateoffilm)
                                .addGap(10, 10, 10))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnroomanageLayout.createSequentialGroup()
                                .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jlbroomstate, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jlbtypeoffilm, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jlbduration, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jlbbasicprice, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jlbstartingdate, javax.swing.GroupLayout.Alignment.TRAILING))
                                .addGap(18, 18, 18)))
                        .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jdcstartingdate, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jtxtduration)
                            .addComponent(jcbstateoffilm, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jScrollPane2)
                            .addComponent(jtxtbasicprice, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jcbtypeoffilm, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(42, 42, 42))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnroomanageLayout.createSequentialGroup()
                        .addGap(0, 183, Short.MAX_VALUE)
                        .addComponent(jbtnreset, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jbtnaddfilm, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jbtnupdatefilm)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jbtndeletefilm)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jbtncancel, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(175, 175, 175))))
        );
        jpnroomanageLayout.setVerticalGroup(
            jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnroomanageLayout.createSequentialGroup()
                .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jpnroomanageLayout.createSequentialGroup()
                        .addGap(11, 11, 11)
                        .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jpnroomanageLayout.createSequentialGroup()
                                .addGap(38, 38, 38)
                                .addComponent(jlbcodeid))
                            .addGroup(jpnroomanageLayout.createSequentialGroup()
                                .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jtxtmovieid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jlbmovieid))
                                .addGap(18, 18, 18)
                                .addComponent(jtxtcodeid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jtxtfilmname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jlbfilmname))
                                .addGap(18, 18, 18)
                                .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jtxtactorsandactresses, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jlbactorandactress))
                                .addGap(18, 18, 18)
                                .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jtxtfilstudio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jtxtfilmstudio))
                                .addGap(18, 18, 18)
                                .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jtxtnationalproduction, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jlbnationalproduction))
                                .addGap(18, 18, 18)
                                .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jtxtversioninformation, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jlbversioninformation)))))
                    .addGroup(jpnroomanageLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jcbtypeoffilm, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jlbtypeoffilm))
                        .addGap(18, 18, 18)
                        .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jtxtduration, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jlbduration))
                        .addGap(18, 18, 18)
                        .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jlbbasicprice)
                            .addComponent(jtxtbasicprice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jlbstartingdate)
                            .addComponent(jdcstartingdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jcbstateoffilm, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jlbstateoffilm))
                        .addGap(18, 18, 18)
                        .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jlbroomstate)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE)
                .addGroup(jpnroomanageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jbtncancel)
                    .addComponent(jbtndeletefilm)
                    .addComponent(jbtnupdatefilm)
                    .addComponent(jbtnreset)
                    .addComponent(jbtnaddfilm))
                .addGap(32, 32, 32))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jpnroomanage, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jpnroomanage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JButton jbtnaddfilm;
    private javax.swing.JButton jbtncancel;
    private javax.swing.JButton jbtndeletefilm;
    private javax.swing.JButton jbtnreset;
    private javax.swing.JButton jbtnsearch;
    private javax.swing.JButton jbtnshowall;
    private javax.swing.JButton jbtnupdatefilm;
    private javax.swing.JComboBox jcbstateoffilm;
    private javax.swing.JComboBox jcbtypeoffilm;
    private javax.swing.JCheckBox jchbsearchbycodeid;
    private javax.swing.JCheckBox jchbsearchbyname;
    private com.toedter.calendar.JDateChooser jdcstartingdate;
    private javax.swing.JLabel jlbactorandactress;
    private javax.swing.JLabel jlbbasicprice;
    private javax.swing.JLabel jlbcodeid;
    private javax.swing.JLabel jlbduration;
    private javax.swing.JLabel jlbfilmname;
    private javax.swing.JLabel jlblistofmovies;
    private javax.swing.JLabel jlbmovieid;
    private javax.swing.JLabel jlbnationalproduction;
    private javax.swing.JLabel jlbroomstate;
    private javax.swing.JLabel jlbsearchmovie;
    private javax.swing.JLabel jlbstartingdate;
    private javax.swing.JLabel jlbstateoffilm;
    private javax.swing.JLabel jlbtypeoffilm;
    private javax.swing.JLabel jlbversioninformation;
    private javax.swing.JPanel jpnroomanage;
    private javax.swing.JTable jtblistofmovie;
    private javax.swing.JTextField jtxtactorsandactresses;
    private javax.swing.JTextField jtxtbasicprice;
    private javax.swing.JTextField jtxtcodeid;
    private javax.swing.JTextArea jtxtdetaileddescription;
    private javax.swing.JTextField jtxtduration;
    private javax.swing.JTextField jtxtfilmname;
    private javax.swing.JLabel jtxtfilmstudio;
    private javax.swing.JTextField jtxtfilstudio;
    private javax.swing.JTextField jtxtmovieid;
    private javax.swing.JTextField jtxtnationalproduction;
    private javax.swing.JTextField jtxtsearchnameorcodeid;
    private javax.swing.JTextField jtxtversioninformation;
    // End of variables declaration//GEN-END:variables
}
